Biblical literalism will always lead to contorted efforts to explain the hopeless ramblings of bronze age goat herders.
Given the knowledge they had it seemed like a reasonable explanation of the world around them, sadly even today millions buy into it as if it's fact.
I used to be one of them.